<html>

<body>

</body>

<script>

  if(document.cookie){
    console.log('cookie',document.cookie)
  }
  document.cookie =1;
  console.log(document.cookie)
</script>
</html>